package com.hualude.roadsign.dto;

import com.hualude.roadsign.model.RoadsignEntity;

/**
 * Created by anqian on 2017/4/7.
 */
public class RoadsignDto {
    private Integer roadSignId;
    private Integer roadPoleId;
    private Integer roadSignDirection;
    private Integer roadSignType;
    private Integer roadSignMeaning;
    private Integer roadSignShape;
    private String roadSignSize;
    private String roadSignPic;
    private Integer roadSignMaterial;
    private Integer roadSignInstallType;
    private Integer roadSignFixed;
    private Integer roadSignSecurity;
    private Integer roadSignBug;
    private Integer orgId;
    private Integer createUserId;
    private String roadSignRemark;
    private Integer roadSignIsComplete;
    private Integer mainOrgId;
    private Integer roadSignLight;
    private Integer environment;
    private Integer defectsLiabilityPeriod;
    private Integer serviceLife;
    private String installOrg;
    private String roadSignInstallTime;
    private Integer roadSignRegionId;

    private String userName;        //createUserId对应的用户名
    private String orgName;         //维修单位名字
    private String mainOrgName;     //主管单位名字
    private String longitude;       //外键roadPoleId对应的经度
    private String latitude;        //外键roadPoleId对应的纬度
    private String province;        //外键roadPoleId对应的省
    private String city;            //外键roadPoleId对应的市
    private String area;            //外键roadPoleId对应的区
    private String roadName;        //外键roadPoleId对应的路名
    private String startRoad;       //外键roadPoleId对应的开始路
    private String endRoad;         //外键roadPoleId对应的结束路
    private Integer roadPoleBridge; //是否桥
    private Integer roadPoleShape;  //标杆形状
    private String roadPoleSize;    //标杆大小
    private String roadPolePic;     //外键roadPoleId对应的全景图片
    private Integer reportState;    //标牌上报情况  0正常可上报 1故障上报中 2请求被否定可再上报 3故障处理中
    private Integer modifierId;     //外键修改人
    private String projectNumber;   //项目编号


    public Integer getModifierId() {
        return modifierId;
    }

    public void setModifierId(Integer modifierId) {
        this.modifierId = modifierId;
    }

    public RoadsignDto() {
    }

    public RoadsignDto(Integer roadSignId, Integer roadPoleId, Integer roadSignDirection, Integer roadSignType,
                       Integer roadSignMeaning, Integer roadSignShape, String roadSignSize, String roadSignPic,
                       Integer roadSignMaterial, Integer roadSignInstallType, Integer roadSignFixed,
                       Integer roadSignSecurity, Integer roadSignBug, Integer orgId, Integer createUserId,
                       String roadSignRemark, Integer roadSignIsComplete, Integer mainOrgId, Integer roadSignLight,
                       Integer environment, Integer defectsLiabilityPeriod, Integer serviceLife, String installOrg,
                       String roadSignInstallTime, Integer roadSignRegionId) {
        this.roadSignId = roadSignId;
        this.roadPoleId = roadPoleId;
        this.roadSignDirection = roadSignDirection;
        this.roadSignType = roadSignType;
        this.roadSignMeaning = roadSignMeaning;
        this.roadSignShape = roadSignShape;
        this.roadSignSize = roadSignSize;
        this.roadSignPic = roadSignPic;
        this.roadSignMaterial = roadSignMaterial;
        this.roadSignInstallType = roadSignInstallType;
        this.roadSignFixed = roadSignFixed;
        this.roadSignSecurity = roadSignSecurity;
        this.roadSignBug = roadSignBug;
        this.orgId = orgId;
        this.createUserId = createUserId;
        this.roadSignRemark = roadSignRemark;
        this.roadSignIsComplete = roadSignIsComplete;
        this.mainOrgId = mainOrgId;
        this.roadSignLight = roadSignLight;
        this.environment = environment;
        this.defectsLiabilityPeriod = defectsLiabilityPeriod;
        this.serviceLife = serviceLife;
        this.installOrg = installOrg;
        this.roadSignInstallTime = roadSignInstallTime;
        this.roadSignRegionId = roadSignRegionId;
    }

    /**
     * @Description: 标牌的部分信息
     * @Author: lin-anqian
     * @Date: 2017/4/7 10:38
     */
    public RoadsignDto(Integer roadSignId, Integer roadSignDirection, Integer roadSignType, String roadSignPic, Integer roadSignInstallType, Integer roadSignFixed, Integer roadSignSecurity, Integer roadSignBug, String roadSignInstallTime, String orgName) {
        this.roadSignId = roadSignId;
        this.roadSignDirection = roadSignDirection;
        this.roadSignType = roadSignType;
        this.roadSignPic = roadSignPic;
        this.roadSignInstallType = roadSignInstallType;
        this.roadSignSecurity = roadSignSecurity;
        this.roadSignBug = roadSignBug;
        this.roadSignInstallTime = roadSignInstallTime;
        this.orgName = orgName;
        this.roadSignFixed = roadSignFixed;
    }

    public RoadsignDto(Integer roadSignId, Integer roadSignType, String roadSignPic, Integer roadSignSecurity, Integer roadSignBug) {
        this.roadSignId = roadSignId;
        this.roadSignPic = roadSignPic;
        this.roadSignType = roadSignType;
        this.roadSignSecurity = roadSignSecurity;
        this.roadSignBug = roadSignBug;
    }

    public RoadsignDto(String projectNumber, Integer roadSignId, Integer roadPoleId, Integer roadSignDirection, Integer roadSignType, String roadSignPic,
                       Integer roadSignInstallType, Integer roadSignSecurity, String roadSignRemark, String longitude, String latitude,
                       String province, String city, String area, String roadName, String startRoad, String endRoad,
                       Integer roadPoleBridge, Integer roadSignMeaning, Integer roadSignBug, Integer roadSignFixed,
                       Integer orgId, Integer mainOrgId, String roadPolePic, Integer roadSignMaterial,
                       Integer defectsLiabilityPeriod, String roadSignInstallTime,Integer serviceLife,Integer roadSignLight,
                       Integer roadSignShape, String roadSignSize, Integer environment, Integer roadPoleShape,
                       String roadPoleSize, String userName, String installOrg, Integer roadSignIsComplete) {
        this.projectNumber = projectNumber;
        this.roadSignId = roadSignId;
        this.roadPoleId = roadPoleId;
        this.roadSignPic = roadSignPic;
        this.roadSignType = roadSignType;
        this.roadSignSecurity = roadSignSecurity;
        this.roadSignBug = roadSignBug;
        this.roadSignDirection = roadSignDirection;
        this.roadSignInstallType = roadSignInstallType;
        this.roadSignRemark = roadSignRemark;
        this.longitude = longitude;
        this.latitude = latitude;
        this.province = province;
        this.city = city;
        this.area = area;
        this.roadName = roadName;
        this.startRoad = startRoad;
        this.endRoad = endRoad;
        this.roadPoleBridge = roadPoleBridge;
        this.roadSignMeaning = roadSignMeaning;
        this.roadSignFixed = roadSignFixed;
        this.orgId = orgId;
        this.mainOrgId = mainOrgId;
        this.roadPolePic = roadPolePic;
        this.roadSignMaterial = roadSignMaterial;
        this.defectsLiabilityPeriod = defectsLiabilityPeriod;
        this.roadSignInstallTime = roadSignInstallTime;
        this.serviceLife = serviceLife;
        this.roadSignLight = roadSignLight;
        this.roadSignShape = roadSignShape;
        this.roadSignSize = roadSignSize;
        this.environment = environment;
        this.roadPoleShape = roadPoleShape;
        this.roadPoleSize = roadPoleSize;
        this.userName = userName;
        this.installOrg = installOrg;
        this.roadSignIsComplete = roadSignIsComplete;
    }

    public RoadsignDto(Integer roadSignType, Integer roadSignShape, Integer roadSignInstallType, Integer environment, Integer orgId, Integer mainOrgId, String userName) {
        this.roadSignType = roadSignType;
        this.roadSignShape = roadSignShape;
        this.roadSignInstallType = roadSignInstallType;
        this.environment = environment;
        this.orgId = orgId;
        this.mainOrgId = mainOrgId;
        this.userName = userName;
    }

    public Integer getRoadSignId() {
        return roadSignId;
    }

    public void setRoadSignId(Integer roadSignId) {
        this.roadSignId = roadSignId;
    }

    public Integer getRoadPoleId() {
        return roadPoleId;
    }

    public void setRoadPoleId(Integer roadPoleId) {
        this.roadPoleId = roadPoleId;
    }

    public Integer getRoadSignDirection() {
        return roadSignDirection;
    }

    public void setRoadSignDirection(Integer roadSignDirection) {
        this.roadSignDirection = roadSignDirection;
    }

    public Integer getRoadSignType() {
        return roadSignType;
    }

    public void setRoadSignType(Integer roadSignType) {
        this.roadSignType = roadSignType;
    }

    public Integer getRoadSignMeaning() {
        return roadSignMeaning;
    }

    public void setRoadSignMeaning(Integer roadSignMeaning) {
        this.roadSignMeaning = roadSignMeaning;
    }

    public Integer getRoadSignShape() {
        return roadSignShape;
    }

    public void setRoadSignShape(Integer roadSignShape) {
        this.roadSignShape = roadSignShape;
    }

    public String getRoadSignSize() {
        return roadSignSize;
    }

    public void setRoadSignSize(String roadSignSize) {
        this.roadSignSize = roadSignSize;
    }

    public String getRoadSignPic() {
        return roadSignPic;
    }

    public void setRoadSignPic(String roadSignPic) {
        this.roadSignPic = roadSignPic;
    }

    public Integer getRoadSignMaterial() {
        return roadSignMaterial;
    }

    public void setRoadSignMaterial(Integer roadSignMaterial) {
        this.roadSignMaterial = roadSignMaterial;
    }

    public Integer getRoadSignInstallType() {
        return roadSignInstallType;
    }

    public void setRoadSignInstallType(Integer roadSignInstallType) {
        this.roadSignInstallType = roadSignInstallType;
    }

    public Integer getRoadSignFixed() {
        return roadSignFixed;
    }

    public void setRoadSignFixed(Integer roadSignFixed) {
        this.roadSignFixed = roadSignFixed;
    }

    public Integer getRoadSignSecurity() {
        return roadSignSecurity;
    }

    public void setRoadSignSecurity(Integer roadSignSecurity) {
        this.roadSignSecurity = roadSignSecurity;
    }

    public Integer getRoadSignBug() {
        return roadSignBug;
    }

    public void setRoadSignBug(Integer roadSignBug) {
        this.roadSignBug = roadSignBug;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    public String getRoadSignRemark() {
        return roadSignRemark;
    }

    public void setRoadSignRemark(String roadSignRemark) {
        this.roadSignRemark = roadSignRemark;
    }

    public Integer getRoadSignIsComplete() {
        return roadSignIsComplete;
    }

    public void setRoadSignIsComplete(Integer roadSignIsComplete) {
        this.roadSignIsComplete = roadSignIsComplete;
    }

    public Integer getMainOrgId() {
        return mainOrgId;
    }

    public void setMainOrgId(Integer mainOrgId) {
        this.mainOrgId = mainOrgId;
    }

    public String getMainOrgName() {
        return mainOrgName;
    }

    public void setMainOrgName(String mainOrgName) {
        this.mainOrgName = mainOrgName;
    }

    public Integer getRoadSignLight() {
        return roadSignLight;
    }

    public void setRoadSignLight(Integer roadSignLight) {
        this.roadSignLight = roadSignLight;
    }

    public Integer getEnvironment() {
        return environment;
    }

    public void setEnvironment(Integer environment) {
        this.environment = environment;
    }

    public Integer getDefectsLiabilityPeriod() {
        return defectsLiabilityPeriod;
    }

    public void setDefectsLiabilityPeriod(Integer defectsLiabilityPeriod) {
        this.defectsLiabilityPeriod = defectsLiabilityPeriod;
    }

    public Integer getServiceLife() {
        return serviceLife;
    }

    public void setServiceLife(Integer serviceLife) {
        this.serviceLife = serviceLife;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getRoadName() {
        return roadName;
    }

    public void setRoadName(String roadName) {
        this.roadName = roadName;
    }

    public Integer getRoadPoleBridge() {
        return roadPoleBridge;
    }

    public void setRoadPoleBridge(Integer roadPoleBridge) {
        this.roadPoleBridge = roadPoleBridge;
    }

    public String getRoadPolePic() {
        return roadPolePic;
    }

    public void setRoadPolePic(String roadPolePic) {
        this.roadPolePic = roadPolePic;
    }

    public String getStartRoad() {
        return startRoad;
    }

    public void setStartRoad(String startRoad) {
        this.startRoad = startRoad;
    }

    public String getEndRoad() {
        return endRoad;
    }

    public void setEndRoad(String endRoad) {
        this.endRoad = endRoad;
    }

    public String getInstallOrg() {
        return installOrg;
    }

    public void setInstallOrg(String installOrg) {
        this.installOrg = installOrg;
    }

    public String getRoadSignInstallTime() {
        return roadSignInstallTime;
    }

    public void setRoadSignInstallTime(String roadSignInstallTime) {
        this.roadSignInstallTime = roadSignInstallTime;
    }

    public Integer getRoadSignRegionId() {
        return roadSignRegionId;
    }

    public void setRoadSignRegionId(Integer roadSignRegionId) {
        this.roadSignRegionId = roadSignRegionId;
    }

    public Integer getReportState() {
        return reportState;
    }

    public void setReportState(Integer reportState) {
        this.reportState = reportState;
    }

    public Integer getRoadPoleShape() {
        return roadPoleShape;
    }

    public void setRoadPoleShape(Integer roadPoleShape) {
        this.roadPoleShape = roadPoleShape;
    }

    public String getRoadPoleSize() {
        return roadPoleSize;
    }

    public void setRoadPoleSize(String roadPoleSize) {
        this.roadPoleSize = roadPoleSize;
    }

    public String getProjectNumber() {
        return projectNumber;
    }

    public void setProjectNumber(String projectNumber) {
        this.projectNumber = projectNumber;
    }

    public RoadsignEntity toBean() {
        RoadsignEntity roadsignEntity = new RoadsignEntity();
        roadsignEntity.setCreateUserId(createUserId);
        roadsignEntity.setMainOrgId(mainOrgId);
        roadsignEntity.setOrgId(orgId);
        roadsignEntity.setRoadPoleId(roadPoleId);
        roadsignEntity.setRoadSignBug(roadSignBug);
        roadsignEntity.setRoadSignDirection(roadSignDirection);
        roadsignEntity.setRoadSignFixed(roadSignFixed);
        roadsignEntity.setRoadSignId(roadSignId);
        roadsignEntity.setRoadSignInstallType(roadSignInstallType);
        roadsignEntity.setRoadSignIsComplete(roadSignIsComplete);
        roadsignEntity.setRoadSignMaterial(roadSignMaterial);
        roadsignEntity.setRoadSignMeaning(roadSignMeaning);
        roadsignEntity.setRoadSignPic(roadSignPic);
        roadsignEntity.setRoadSignRemark(roadSignRemark);
        roadsignEntity.setRoadSignSecurity(roadSignSecurity);
        roadsignEntity.setRoadSignShape(roadSignShape);
        roadsignEntity.setRoadSignSize(roadSignSize);
        roadsignEntity.setRoadSignType(roadSignType);
        roadsignEntity.setRoadSignLight(roadSignLight);
        roadsignEntity.setEnvironment(environment);
        roadsignEntity.setDefectsLiabilityPeriod(defectsLiabilityPeriod);
        roadsignEntity.setServiceLife(serviceLife);
        roadsignEntity.setInstallOrg(installOrg);
        roadsignEntity.setRoadSignInstallTime(roadSignInstallTime);
        roadsignEntity.setRoadSignRegionId(roadSignRegionId);
        return roadsignEntity;
    }


}
